{% extends "main.html" %}
{% block titel %}News{% endblock %}
{% block content %}

<div class="TextBox1">
	{% if post_list %} 
	{% for post in post_list %}

	<div class="header1"><a href="/news/{{ post.id }}">{{ post.titel|escape }}</a></div>
	<span>{{ post.pub_date|date:"F j, Y" }} | by {{ post.author|escape }} </span>
	
	<p>{{ post.text|truncatewords:"100" }}</p>

  {% load blogs_tags %}
  {% commentbox post.id %}

  <br />

	{% endfor %}

	{% else %}
	<p>No news are available.</p>
	{% endif %}

</div>

{% endblock %}

